/*
 * @Description: 
 * @Date: 2024-01-26 14:33:41
 * @LastEditTime: 2024-02-26 16:45:10
 */
import request from '@/utils/request'
import { log } from 'bpmn-js-token-simulation'

// 新增任免管理
export function processInfo(data) {
    return request({
        url: '/system/processInfo',
        method: 'post',
        data: data
    })
}
// 查询界次管理下拉框
export function getProcessInfoList(data) {
    return request({
        url: '/system/processInfo/list',
        method: 'get',
        params: data
    })
}
// 获取部门列表
export function processInfoProId(proId) {
    return request({
        url: '/system/processInfo/' + proId,
        method: 'get',
    })
}
///system/suggest
export function suggest(data) {
    return request({
        url: '/system/suggest',
        method: 'put',
        data: data
    })
}
//修改代表团
export function updateProcessInfo(data) {
    return request({
        url: '/system/processInfo',
        method: 'put',
        data: data
    })
}
export function userListByRoleId(proId) {
    return request({
        url: '/ipc/user/userListByRoleId',
        method: 'get',
        params: { id: proId }
    })
}

//我的全部附议
export function getListAll(data) {
    return request({
        url: '/system/processInfo/list/my',
        method: 'get',
        params: data
    })
}
//我的领衔和附议
export function getListMyOf(data) {
    return request({
        url: '/system/processInfo/list/myOf',
        method: 'get',
        params: data
    })
}

export function delProcessInfo(id) {
    return request({
        url: '/system/processInfo/' + id,
        method: 'delete'
    })
}
export function delFileManager(id) {
    return request({
        url: '/system/fileManager/' + id,
        method: 'delete'
    })
}

export function delFollowerUserInfo(id) {
    return request({
        url: '/system/followerUserInfo/' + id,
        method: 'delete'

    })
}
export function followerUserInfo(data) {
    return request({
        url: '/system/followerUserInfo',
        method: 'post',
        data: data
    })
}
export function fileManager(data) {
    return request({
        url: '/system/fileManager',
        method: 'post',
        data: data
    })
}
////system/fileManager